package com.example.musicdemo.adapter

import android.content.Context
import com.example.musicdemo.base.BaseListAdapter
import com.example.musicdemo.model.Music
import com.example.musicdemo.widget.SearchItemView

class SearchAdapter: BaseListAdapter<Music, SearchItemView>() {
    override fun refreshItemView(itemView: SearchItemView, data: Music) {
        itemView.setData(data)
    }

    override fun getItemView(context: Context?): SearchItemView {
        return SearchItemView(context)
    }
}